package cn.xmoit.listener;

import cn.xmoit.event.PlaceOrderEvent;

import lombok.extern.slf4j.Slf4j;

import org.springframework.context.event.EventListener;

import org.springframework.scheduling.annotation.Async;

import org.springframework.stereotype.Service;

/**
 * @author fangyy
 */
@Slf4j
@Service
public class OrderNotifyListener {

	@Async
	@EventListener(PlaceOrderEvent.class)
	public void onPlaceOrderEvent(PlaceOrderEvent event) {
		log.info("[afterPlaceOrder] notify.");
	}

}
